import "./assets/js/jquery.min.js"
import "./assets/js/bootstrap.min.js"
import "./assets/css/bootstrap.min.css"
import "./assets/css/style.css"
import "./assets/css/font-awesome/css/font-awesome.min.css"
import { createApp } from 'vue'
import App from './App.vue'
import router from "./router"
import axios from "axios"
import MarkdownEditor from "@kangc/v-md-editor"
import MarkdownPreview from "@kangc/v-md-editor/lib/preview"
import '@kangc/v-md-editor/lib/style/base-editor.css'
import githubTheme from '@kangc/v-md-editor/lib/theme/github.js'
import '@kangc/v-md-editor/lib/theme/style/github.css'

const app = createApp(App)
MarkdownEditor.use(githubTheme)
MarkdownPreview.use(githubTheme)

app.config.globalProperties.$http = axios
axios.defaults.baseURL = "http://127.0.0.1:5000"
axios.defaults.timeout = 200
axios.defaults.headers.post["Content-Type"] = 'application/json'

//localStorage.setItem("token","")
//localStorage.setItem("isLogin",false)

app.use(MarkdownEditor).use(MarkdownPreview).use(router).mount('#app')
